package com.xmy.cultivate.entity.excelEntity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xmy.cultivate.converter.LocalDateConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

/**
 * <p>
 * 记上课
 * </p>
 *
 * @author min
 * @since 2022-08-11
 */
@Data
@ApiModel("课程记录实体excel")
public class RecordCourseExcel {

    @ExcelProperty(index = 0,value = "姓名")
    @ApiModelProperty("学生名")
    private String studentName;

    @ExcelProperty(index = 1,value = "年份")
    @ApiModelProperty("年份")
    private Integer yearPart;

    @ExcelProperty(index = 2,value = "学期")
    @ApiModelProperty("学期")
    private String quarterStr;

    @ExcelProperty(index = 3,value = "科目")
    @ApiModelProperty("科目名")
    private String subjectsName;

    @ExcelProperty(index = 4,value = "校区")
    @ApiModelProperty("校区名")
    private String schoolName;

    @ExcelProperty(index = 5,value = "年级")
    @ApiModelProperty("年级")
    private String yearClassSrc;

    @ExcelProperty(index = 6,value = "班级")
    @ApiModelProperty("班级名")
    private String gradeName;

    @ExcelProperty(index = 7,value = "教师")
    @ApiModelProperty("老师名")
    private String teacherName;

    @ExcelProperty(index = 8,value = "上课时间",converter = LocalDateConverter.class)
    @ApiModelProperty("上课时间")
    @TableField(exist = false)
    private LocalDate schoolDate;

    @ExcelProperty(index = 9,value = "满意度情况")
    @ApiModelProperty("调查结果名称，空格拼接")
    @TableField(exist = false)
    private String surveyResultName;

}
